package com.assignwork.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.core.tool.utils.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @ClassName DailyShift
 * @Description 每日作业班组
 * @Author dujianyu
 * @Date 2023/12/1 10:36
 */
@Data
@TableName("daily_shift")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DailyShift对象", description = "每日作业班组")
public class DailyShift extends TenantEntity {

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @ApiModelProperty(value = "日期")
    private LocalDate workDate;

    @ApiModelProperty(value = "时间段")
    private String timeSpace;

    @ApiModelProperty(value = "作业班组")
    private String dailyShift;

    @ApiModelProperty(value = "调度主任")
    private String assignLeader;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "规则Id")
    private Long ruleId;


}
